import DS from 'ember-data';
import BaseModel from './base-model';

export default BaseModel.extend({
  cardCode: DS.attr("string"), //身份证号
  customerName: DS.attr('string'),//老人姓名
  drugName: DS.attr('string'),//药品名称
  drugFactory: DS.attr('string'),//生产厂家
  leftDays:DS.attr('number'),//剩余天数
  currDrugNum:DS.attr('number'),//当前数量
  customer:DS.belongsTo('customer'),
  customerDrug:DS.belongsTo('customerdrug'),
  report:DS.belongsTo('customerdrugreport'),
  lastUpdateDateTime:DS.attr('number'),//更新时间
  createUser:DS.belongsTo('user'),//创建人
  createDateTime:DS.attr('number'),//创建时间
  lastUpdateUser:DS.belongsTo('user'),//更新操作者userid
  remark: DS.attr('string'),//备注
});
